package com.fz.entity;

import com.fz.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 存储区域名称与位置信息
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Region extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 区域名称（唯一）
     */
    private String name;

    /**
     * 区域地址
     */
    private String address;

    /**
     * 状态（1=启用，0=禁用）
     */
    private Boolean status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    public Region(String name, String address) {
        this.name = name;
        this.address = address;
        status = true;
    }

    public Region(long id,String name, String address) {
        super(id);
        this.name = name;
        this.address = address;
        status = true;
    }

    public Region(long id, Boolean status) {
        super(id);
        this.status = status;
    }

}
